package com.ruoyi.psi.base.product.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
 * 查询条件
 */
@Data
public class ProductCond extends BaseEntity {
    /**
     * 产品编号
     */
    @NotNull(message = "产品编号不能为空")
    @ApiModelProperty(value = "产品编号", required = true)
    @Excel(name = "产品编号")
    private String produceId;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String produceName;

    /**
     * 类别编号
     */
    @NotNull(message = "产品类别编号不能为空")
    @ApiModelProperty(value = "产品类别编号", required = true)
    @Excel(name = "类别编号")
    private String baseCategoryId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "创建时间")
    private Timestamp createTime;
}
